<!DOCTYPE html>
 <html>
 <head>
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
 <% include("/WEB-INF/view/console/common/css.html"){}	%>
 <% include("/WEB-INF/view/console/common/js.html"){} 	%>
 <title></title>
 </head>
 <body> <nav class="navbar navbar-default navbar-fixed-top site-navbar" >
  <div class="navbar-header">
 <a class="navbar-brand" href="#">boTaster</a>
 </div>
  </nav>
 <form name="boTaster_form"  id="boTaster_form" class="form-horizontal" style="margin-top: 60px;">
   <div class="form-group" >
 <label class="col-sm-2 control-label">用户ID</label>
 <div class="col-sm-6">
 <input  type="text"  name="boBpProxyId" id="boBpProxyId" class="form-control" check-type="required" value='${boTaster.boBpProxyId!}' >
 </div>
  </div>
 <div class="form-group" >
 <label class="col-sm-2 control-label">用户真实姓名</label>
 <div class="col-sm-6">
 <input  type="text"  name="boTrueName" id="boTrueName" class="form-control" check-type="required" value='${boTaster.boTrueName!}' >
 </div>
  </div>
 <div class="form-group" >
 <label class="col-sm-2 control-label">用户身份证</label>
 <div class="col-sm-6">
 <input  type="text"  name="boIdentifyNum" id="boIdentifyNum" class="form-control" check-type="required" value='${boTaster.boIdentifyNum!}' >
 </div>
  </div>
 <div class="form-group" >
 <label class="col-sm-2 control-label">申请时间</label>
 <div class="col-sm-6">
 <input  type="text" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" name="boApplyTime" id="boApplyTime" class="form-control" check-type="required" value='${boTaster.boApplyTime!,"yyyy-MM-dd HH:mm:ss"}' >
 </div>
  </div>
 <div class="form-group" >
 <label class="col-sm-2 control-label">审核时间</label>
 <div class="col-sm-6">
 <input  type="text" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" name="boReviewTime" id="boReviewTime" class="form-control" check-type="required" value='${boTaster.boReviewTime!,"yyyy-MM-dd HH:mm:ss"}' >
 </div>
  </div>
 <div class="form-group">
 <label for="cemail" class="control-label col-sm-2">状态</label>
 <div class="col-sm-6">
 	<select class="form-control" id="boStatus"
 		name="boStatus" check-type="required">
 	<option selected='selected' value="1">未审核</option>
 	<option  value="2">通过</option>
 	<option  value="3">未通过</option>
 	<option  value="4">禁止</option>
 </select>
 </div>
 </div>
 	<script type="text/javascript">
   $(function($) {
 	$("#boStatus").val("${boTaster.boStatus!}");
 	if('${boTaster.boStatus!}'==''){
 	    $("#boStatus").val('1');
 	}
    });
 	</script>
 
   <input type='hidden' name='boTasterId' id='boTasterId' value='${boTaster.boTasterId!}'><input type='hidden' name='common_token' id='common_token' value='${common_token!}'>
 <div class="form-group" style="margin-bottom: 60px;"></div>
 </form>
 <script type="text/javascript">
 $(function($) {
    /*开启表单验证*/
 	$("#boTaster_form").validation();
 });
 /*保存*/
 function saveZqForm(){
    if ($("#boTaster_form").valid() == false) {
 	    return false;
    }
    var formObject=new Object();
    formObject.boBpProxyId=$('#boBpProxyId').val()==''?null:$('#boBpProxyId').val(); 
 formObject.boTrueName=$('#boTrueName').val()==''?null:$('#boTrueName').val(); 
 formObject.boIdentifyNum=$('#boIdentifyNum').val()==''?null:$('#boIdentifyNum').val(); 
 formObject.boApplyTime=$('#boApplyTime').val()==''?null:$('#boApplyTime').val(); 
 formObject.boReviewTime=$('#boReviewTime').val()==''?null:$('#boReviewTime').val(); 
 formObject.boStatus=$('#boStatus').val()==''?null:$('#boStatus').val(); 
 formObject.boTasterId=$('#boTasterId').val()==''?null:$('#boTasterId').val(); 
 
    var formObjectJson = JSON.stringify(formObject);
    $.post("${ctxPath}/console/bo_taster/save",
     {
           formObjectJson :formObjectJson,
 	   table_name :'boTaster',
 	   common_token :$("#common_token").val()
     }, function(data) {
            $.confirm({
                title: '提示',
                content: data.message,
                autoClose: 'cancelAction|3000',
                escapeKey: 'cancelAction',
                buttons: {
                    cancelAction: {
                        text: '确定',
                        action: function () {
                            parent.$("#boTaster").bootstrapTable("refresh");
                            parent.art.dialog.get('id-dialog-boTaster').close();
                        }
                    }
                }
            });
     });
 }
 </script>
 <nav class="navbar navbar-default navbar-fixed-bottom site-navbar" >
 <div class="container" style="padding-top:10px;padding-bottom:10px;">
 <div class="nav navbar-nav navbar-right">
 <a href="#" class="btn btn-success"  onclick='saveZqForm()'>保存 </a>
  </div>
  </div>
  </nav>
 </body>
